<template>
	<div class="box">
		<h2>分页</h2>
		<my-pagination all
					   :currentPage.sync="currentPage"
					   :limit.sync="limit"
					   :totalCount="totalCount"
					   @turn="getData"></my-pagination>
	</div>
</template>

<script>
export default {
  name: "Index",
  data() {
    return {
      currentPage: 1, //当前页码
      limit: 3, //每页显示条数
      totalCount: 0
    };
  },
  methods: {
    getData() {
      alert("刷新列表！");
    }
  }
};
</script>
